home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 127 / PC Guia 127.iso / Software / Produtividade / OpenOffice.org 2.0.1 / openofficeorg4.cab / badsyntax_future6.py < prev    next >
Text File  |  2005-11-19  |  158b  |  11 lines

  1. """This is a test"""
  2. "this isn't a doc string"
  3. from __future__ import nested_scopes
  4.  
  5. def f(x):
  6.     def g(y):
  7.         return x + y
  8.     return g
  9.  
  10. print f(2)(4)
  11.